#include <iostream>
using namespace std;

int main(){
	int a, i = 0;
	cin >> a;
	int b[3] = {0};
	while(a != 0){
		b[i++] = a % 10;
		a = a / 10;
	}
	for(int k=0; k<b[2];k++)
		cout << "B";
	for(int k=0;k<b[1];k++)
		cout << "S";
	for(int k=0; k<b[0];k++)
		cout << k+1;
	return 0;
}
